package com.lanou.service;

import com.github.pagehelper.PageInfo;
import com.lanou.bean.Cost;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by dllo on 18/3/13.
 */
public interface CostService {
    List<Cost> allcost();
    PageInfo<Cost> queryCostByPage(Integer pageNo, Integer pageSize);
    void addAll(String name, Integer baseDuration, Integer baseCost, Integer unitCost, String descr, String costType);
    void updatecost(String name, Integer baseDuration,Integer baseCost, String descr,Integer costid);
    void deletecost(Integer costid);
    Cost selectcostbyid(Integer costid);
    List<Cost> selectCostIdByName(String name);

    void updateStatusByCostId(@Param("status") String status, @Param("costId") Integer costId);

    List<Cost> baseasc();

    List<Cost> basedesc();

    List<Cost> tiemasc();

    List<Cost> tiemdesc();

    PageInfo<Cost> costbaseasc(Integer pageNo, Integer pageSize);

    PageInfo<Cost> costbasedesc(Integer pageNo, Integer pageSize);

    PageInfo<Cost> costtiemasc(Integer pageNo, Integer pageSize);

    PageInfo<Cost> costtiemdesc(Integer pageNo, Integer pageSize);

}
